package com.ant.map.myuiimmersive.activities;

import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.design.widget.TabLayout;
import android.view.View;

import com.ant.map.myuiimmersive.R;
import com.ant.utls.base.BaseActivity;
import com.ant.utls.utils.AntLog;

/**
 * Created by baichuan on 2016/12/12.
 */

public class Test006 extends BaseActivity {
    private FloatingActionButton foatBu;
    private TabLayout tab;

    @Override
    public int getLaout() {
        return R.layout.ac_test006_02;
    }

    @Override
    public void initView() {
        tab= (TabLayout) findViewById(R.id.ac_test006_tablayout);

    }

    @Override
    public void initData() {
addTabs();

    }

    private void addTabs() {
        tab.addTab(tab.newTab().setText("标签"));
        tab.addTab(tab.newTab().setText("标签"));
        tab.addTab(tab.newTab().setText("标签"));
        tab.addTab(tab.newTab().setText("标签"));
        tab.addTab(tab.newTab().setText("标签"));
    }

    @Override
    public void initListener() {

    }

    public void myclick(View v) {
        switch (v.getId()) {
            case R.id.ac_test006_snackbar:
                AntLog.i("ant Test");
                Snackbar.make(v, "snackbar view", Snackbar.LENGTH_LONG).show();

                break;
        }
    }
}
